import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { RouterProvider } from "react-router-dom";
import BasicMapRouter from "./router";



const render = () => {
const root = ReactDOM.createRoot(document.getElementById('app-react'));
  
  root.render(
    <React.StrictMode>
      <RouterProvider router={BasicMapRouter} />
    </React.StrictMode>,
  );
}

if(!window.__MICRO_WEB__) {
  render();
}
export const bootstrap = () => {
  console.log('bootstrap')
}

export const mount = () => {
  render()
}

export const unmount = () => {
  console.log('卸载')
}
